package cn.wolfcode.education.mapper;

import cn.wolfcode.education.domain.DayWork;
import cn.wolfcode.education.query.DayWorkQuery;

import java.util.List;

public interface DayWorkMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DayWork record);

    DayWork selectByPrimaryKey(Long id);

    List<DayWork> selectAll();

    int updateByPrimaryKey(DayWork dayWork);

    List<DayWork> getDayWorksByDeptId(DayWorkQuery qo);
    int getDayWorksByCountDeptId(DayWorkQuery qo);

    int getDayWorksByEmployeeId(DayWorkQuery qo);

    List<DayWork> getDayWorksCountByEmployeeId(DayWorkQuery qo);

    void updateStateFail(Long id);

    void updateStateSuccess(Long id);

    void updateDescriptionHandle(DayWork dayWork);
}